﻿namespace MQTTServer.Models
{
    /// <summary>
    /// :远程开门
    /// </summary>
    public class Unlock
    {
        /// <summary>
        ///  远程开门
        /// </summary>
        public string @operator { get; set; }

        /// <summary>
        /// 消息 id,区分每一条消
        /// </summary>
        public string messageId { get; set; }

        /// <summary>
        ///  UnlockInfo
        /// </summary>
        public UnlockInfo info { get; set; }
    }

    public class UnlockInfo
    {
        /// <summary>
        ///  预留Id
        /// </summary>
        public string? uid { get; set; }
        /// <summary>
        ///  开门动作 0~1 0：不开门 1：开门
        /// </summary>
        public OpenDoor openDoor { get; set; }
        /// <summary>
        ///  UI 提示信息
        /// </summary>
        public string? showInfo { get; set; }
    }
}